package com.reger.l2cache.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;

@ConfigurationProperties("spring.l2cache")
public class RedisPipelineProperties {

	/**
	 * 管道的工作线程数，默认值是cpu核数的两倍
	 */
	private Integer workThreadNum;

	/**
	 * 是否启用管道
	 */
	private boolean pipeEnabled = false;

	public boolean isPipeEnabled() {
		return pipeEnabled;
	}

	public void setPipeEnabled(boolean pipeEnabled) {
		this.pipeEnabled = pipeEnabled;
	}

	public Integer getWorkThreadNum() {
		return workThreadNum;
	}

	public void setWorkThreadNum(Integer workThreadNum) {
		this.workThreadNum = workThreadNum;
	}

}
